import { post } from '@/utils/request'
import type { Users } from './interface'
// 注册
export const register = (params: Users.RegisterParam) => {
    return post('/users/create', params)
}

// 登陆
export const login = (params: Users.LoginParam) => {
    return post<Users.LoginResponse>('/users/login', params)
}